package com.woniu.controller;

import com.woniu.form.EditAvatarAndNicknameForm;
import com.woniu.service.NuserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author LXB
 * @Date 2023/12/18 20:48
 * @Description
 **/
@RestController("NuserController")
@RequestMapping("/user")
@Api(tags = "用户操作")
public class NuserController {

    @Autowired
    private NuserService nuserService;

    @ApiOperation(value = "更新头像和昵称")
    @PostMapping("/editAvatarAndNick")
    @ApiImplicitParams({})
    public boolean editAvatarAndNick(@RequestBody EditAvatarAndNicknameForm form){
        return nuserService.editAvatarAndNick(form);
    }

}
